package greendao.entity;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import automatchingview.AutoMatchingPopuWindow;
import views.AutoMatchingPopuWindowDate;

/**
 * Created by zx on 2017/3/21.
 */
//用户信息
@Entity
public class User implements AutoMatchingPopuWindowDate {



    @Id(autoincrement = true)
    Long id;
    //用户名（用于保存）
    String ljyyxLoginName;
    //真实姓名
    String ljyyxWorkerName;
    //手机电话
    String ljyyxWorkerTel;
    //直属部门名称
    String downUnitName;
    
    String ljyyxDwxxName;

    int ljyyxDwxxId;

    boolean checked;
    
    @Generated(hash = 443476037)
    public User(Long id, String ljyyxLoginName, String ljyyxWorkerName,
            String ljyyxWorkerTel, String downUnitName, String ljyyxDwxxName,
            int ljyyxDwxxId, boolean checked) {
        this.id = id;
        this.ljyyxLoginName = ljyyxLoginName;
        this.ljyyxWorkerName = ljyyxWorkerName;
        this.ljyyxWorkerTel = ljyyxWorkerTel;
        this.downUnitName = downUnitName;
        this.ljyyxDwxxName = ljyyxDwxxName;
        this.ljyyxDwxxId = ljyyxDwxxId;
        this.checked = checked;
    }
    @Generated(hash = 586692638)
    public User() {

    }
    public String getLjyyxLoginName() {
        return this.ljyyxLoginName;
    }
    public void setLjyyxLoginName(String ljyyxLoginName) {
        this.ljyyxLoginName = ljyyxLoginName;
    }
    public String getLjyyxWorkerName() {
        return this.ljyyxWorkerName;
    }
    public void setLjyyxWorkerName(String ljyyxWorkerName) {
        this.ljyyxWorkerName = ljyyxWorkerName;
    }
    public String getLjyyxWorkerTel() {
        return this.ljyyxWorkerTel;
    }
    public void setLjyyxWorkerTel(String ljyyxWorkerTel) {
        this.ljyyxWorkerTel = ljyyxWorkerTel;
    }
    public String getDownUnitName() {
        return this.downUnitName;
    }
    public void setDownUnitName(String downUnitName) {
        this.downUnitName = downUnitName;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public int getLjyyxDwxxId() {
        return this.ljyyxDwxxId;
    }
    public void setLjyyxDwxxId(int ljyyxDwxxId) {
        this.ljyyxDwxxId = ljyyxDwxxId;
    }

    @Override
    public String toString() {
        return ljyyxWorkerName;
    }

    @Override
    public String getString() {
        return ljyyxDwxxName+"  "+ljyyxWorkerName;
    }

    @Override
    public Long getIndex() {
        return id;
    }

    @Override
    public boolean isChecked() {
        return checked;
    }

    @Override
    public void setChecked(boolean checked) {
        this.checked=checked;
    }
    public boolean getChecked() {
        return this.checked;
    }
    public String getLjyyxDwxxName() {
        return this.ljyyxDwxxName;
    }
    public void setLjyyxDwxxName(String ljyyxDwxxName) {
        this.ljyyxDwxxName = ljyyxDwxxName;
    }
}
